﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GameLogic.Poker;


namespace GameLogic.RPG
{
    public class Skill: ISkill
    {
        public delegate void EffectOn(SkillParam SkillParam);
        public EffectOn delEffect;
        public string About;
        public int ManaCost;
        public Double Complexity;

        public SkillProperty SkillProp;
        
        public void Effect(SkillParam SkillParam)
        {
            delEffect(SkillParam);
            SkillParam.Player.MP -= ManaCost;
        }
        public void UpEnemyCard(SkillParam SkillParam)
        {
            SkillParam.EnemyHands[0].Cards[SkillParam.IndexOnCard].State = State.Up;
        }
        public void UpAllEnemyCard(SkillParam SkillParam)
        {
            foreach (Card card in SkillParam.EnemyHands[0].Cards)
            {
                card.State = State.Up;
            }
        }
        
    }
}
